package dev.nextcore.service

import org.springframework.ai.chat.client.ChatClient
import org.springframework.stereotype.Service

@Service
class OllamaService(private val chatClient: ChatClient) {
    fun chat(prompt: String): String {
        return chatClient.prompt()
            .user(prompt)
            .call()
            .content()
            .toString()
    }
}